package org.jeecg.modules.fk.mapper.manual.model.riskprocesslist;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class RiskReportListRespDTO {

    //税款所属期起
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    protected Date skssqq;

    //税款所属期止
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    protected Date skssqz;

    //报告生成时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    protected Date createDate;

    //生成状态
    protected String reportState;

    //生成失败原因
    protected String msg;

    //结论
    JieLunRespDTO jieLun;

    public String getReportState() {
        if (null == this.reportState) {
            this.reportState = "NOT_GENERATED";
        }
        return reportState;
    }

}
